home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: hpscit.sc.hp.com!hp-apd-news!hpsgm1!tanjm
- From: tanjm@hpsgrt1.sgp.hp.com (Jin-Meng TAN)
- Subject: C programmer confused by streams
- Sender: news@news.sgp.hp.com (NEWS ADMIN)
- Message-ID: <DL1r9x.HsJ@news.sgp.hp.com>
- Date: Fri, 12 Jan 1996 02:37:09 GMT
- Nntp-Posting-Host: hpsgrt1.sgp.hp.com
- Organization: Hewlett-Packard Singapore
- X-Newsreader: TIN [version 1.2 PL2.2]
-
-
- Hi. I've been trying to pick up C++ for a few weeks (part-time) and I think
- I've got a handle on a lot of stuff. But the streams library
- (specifically the Borland C/C++ 4.5 one) just confuses me.
-
- I can vaguely see that streams is potentially very powerful in that any
- source/sink of data (console, file, memory etc) can be a stream. The help
- isn't very helpful :) either on streams concepts.
-
- So I got a few questions :
-
- 1) How to get a good book that treats streams well.
- 2) Is there an example implementation (or can someone provide one)
- that explains how to implement a class that takes a generic input
- stream and outputs to a generic output stream?
- 3) how would you buffer the implementation in (2) given that the rate of
- input isn't equal to the rate of output.
- 4) does anyone have (or know where to get) a good concise description of
- Borland's stream support? Is this support (mostly) available in other
- C++ suites or will I have to relearn it?
-
- Thanks very much in advance for any help.
-
- jin meng
-